/*
 * Copyright 2008, 2009 Kobi Krasnoff
 * 
 * This file is part of "Catch Falling Coins".
 *
 * "Catch Falling Coins" is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * "Catch Falling Coins" is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with "Catch Falling Coins".  If not, see <http://www.gnu.org/licenses/>.
 *
 */

import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;


public class CopyrightForm extends Form implements CommandListener {
	private MainMIDlet parent;
    private Command mainMenu = new Command("Main Menu", Command.BACK, 1);
    
    public CopyrightForm(MainMIDlet parent) {
        super("About Form");
        addCommand(mainMenu);
        setCommandListener(this);
        
        this.append("\"Catch Falling Coins\"  Copyright (C) 2009 Kobi Krasnoff");
        this.append("This program comes with ABSOLUTELY NO WARRANTY;");
        this.append("This is free software, and you are welcome to redistribute it under certain conditions;");
        this.append("For more details see GNU version 3.0 license in <http://www.gnu.org/licenses/>");
        
        this.parent = parent;
    }
    
    public void commandAction(Command c, Displayable d) {
        if (c == mainMenu) {
            parent.setCurrent("MainList");
        }
    }
}
